<div style="border:1px dashed #566262; padding: 2px; width:100%;">
    <b>Alimento:</b><br>
    -----------------<br>
    <?php 
    $counter = 0;
    foreach ($favoritos as $favor) {
            echo $favor->getProducto()->getMarca()."<br>";
            $counter++;
        }
        
        if($counter<=0) echo "<b style='color:red;'>NO DETECTADO</b>";
        ?>
    
</div>